package com.cgy.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.cgy.entity.Computer;

public interface ComputerService {
	//查询所有电脑
		Page<Computer> findBynameConputer(Computer c,Pageable pageable,Integer zid);
		//添加科室修改电脑 
		Computer addAndUpdateConputer(Computer c);
		//修改为上机状态
		Integer upcomputerstaticsj(Integer cid);
		//修改为下机状态
		Integer upcomputerstaticxj(Integer cid);
		//删除科室
		Integer deleteConputer(Integer cid);
	/*
	 * //根据资源室id查询资源 
	 */
		List<Computer> findAllByzid(Map<String, Object> map);
		
		//总条数

		Integer findAllByzidCount(Map<String, Object> map);
}
